package diandiansong.library.ui.base;

import android.content.Context;
import android.support.v4.app.Fragment;

import diandiansong.library.utils.Logger;
import diandiansong.library.utils.OnLoadingListener;
import diandiansong.library.utils.UIHelper;


/**
 * Created by act on 2017/10/31.
 */

public class BaseFrag extends Fragment implements OnLoadingListener {

    Logger logger = Logger.getLogger();

    protected Context mContext;

    @Override
    public void onLoading() {
        ((BaseAct) getActivity()).onLoading();
    }

    @Override
    public void onLoaded() {
        ((BaseAct) getActivity()).onLoaded();
    }

    public void toast(String msg) {
        UIHelper.toast(getActivity(), msg);
    }
}
